//
//  GMMyViewController.m
//  GoodsManagement
//
//  Created by 车浩 on 2017/4/9.
//  Copyright © 2017年 CheHao. All rights reserved.
//

#import "GMMyViewController.h"
#import "MeViewController.h"

@interface GMMyViewController ()

@end

@implementation GMMyViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
//    [self.view addSubview:meVC.view];
    
    
    // Do any additional setup after loading the view.
}



#pragma mark -- viewWillAppear VC生命周期
- (void)viewWillAppear:(BOOL)animated{
    MeViewController *meVC = [[MeViewController alloc] init];
    meVC.view.frame = kScreenBounds;
    
    [self.navigationController pushViewController:meVC animated:NO];
    [super viewWillAppear:animated];
    self.navigationController.navigationBar.hidden = YES;
//    [[UIApplication sharedApplication] setStatusBarHidden:TRUE withAnimation:UIStatusBarAnimationFade];
}

- (void)viewWillDisappear:(BOOL)animated{
    [super viewWillDisappear:animated];
    self.navigationController.navigationBar.hidden = NO;
//    [[UIApplication sharedApplication] setStatusBarHidden:false  withAnimation:UIStatusBarAnimationFade];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
